package com.face.server.service;

import com.face.server.entity.Dormitory;
import com.face.server.vo.NormStu;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;

import java.security.Principal;
import java.util.List;

/**
 * Created by ryan on 2018/3/15.
 */
public interface DormitoryService {
    Page<Dormitory> listDormitories(Pageable pageRequest, String key1, String key2);

    List<NormStu> listStuInDorm(String id);

    Page<Dormitory> listDormitories(Pageable pageable, String key1, String key2, Principal principal);
}
